package com.pengxh.app.realityshow;

import android.content.Intent;
import android.view.View;

import com.pengxh.app.multilib.base.BaseNormalActivity;
import com.pengxh.app.realityshow.media.AudioPublishActivity;
import com.pengxh.app.realityshow.media.VideoPublishActivity;
import com.pengxh.app.realityshow.netty.NettyActivity;

import butterknife.OnClick;

public class MainActivity extends BaseNormalActivity implements View.OnClickListener {

    @Override
    public void initView() {
        setContentView(R.layout.activity_main);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initEvent() {

    }

    @OnClick({R.id.startLongConnect, R.id.startVideoPublish, R.id.startAudioPublish})
    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.startLongConnect:
                intent.setClass(this, NettyActivity.class);
                break;
            case R.id.startVideoPublish:
                intent.setClass(this, VideoPublishActivity.class);
                break;
            case R.id.startAudioPublish:
                intent.setClass(this, AudioPublishActivity.class);
                break;
            default:
                break;
        }
        startActivity(intent);
    }
}